package com.gitee.lht.common;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-12-05
 */
public class MathUtil {
    public static boolean decimalHasValue(Number number) {
        if (number == null) {
            return false;
        }
        return number.doubleValue() - number.intValue() > 0;
    }

    public static boolean decimalHasValue(double decimal) {
        long l = Double.doubleToLongBits(decimal);
        long exponenet = l & 0b01111111111100000000;
        return (Double.doubleToLongBits(decimal) & 0xffffffff) > 0;
    }
}
